home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / ANIM.SWG / 0003_COL.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-03  |  1KB  |  33 lines

  1. --------I-COL-------------------------------
  2.  
  3. A  COL file stores the rgb values for entries in the color palette. Both
  4. Animator  Pro  and  the  original Animator  produce  COL  files, but the
  5. formats  are different. To process a COL  file for input, check the file
  6. size.  If it is exactly 768 bytes,  the file is an original Animator COL
  7. file.  If  the file is any other size,  it is an Animator Pro COL file -
  8. which makes identification almost impossible.
  9.  
  10. Animator Pro COL Files do have a 8-byte header :
  11.  
  12. OFFSET              Count TYPE   Description
  13. 0000h                   1 dword  File size, including this header
  14. 0004h                   1 word   ID=0B123h
  15. 0006h                   1 word   Version, currently 0
  16.  
  17. Following  the file header are palette  entries in rgbrgb... order. Each
  18. of  the  r, g, and b components is  a single byte in the range of 0-255.
  19. Generally,  there will be data for  256 palette entries, but this cannot
  20. be  assumed.  The actual number of  palette  entries is ((size-8)/3); if
  21. this value is not an even multiple of three, the file is corrupted.
  22.  
  23. Original Animator COL Files
  24.  
  25. A  COL file created by the original  Animator is exactly 768 bytes long.
  26. There is no file header or other control information in the file.
  27.  
  28. EXTENSION:COL
  29. OCCURENCES:PC
  30. PROGRAMS:Autodesk Animator, Autodesk Animator Pro
  31. SEE ALSO:FLIc,FLT
  32.  
  33.